package com.hxm.pojo;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * 
 * @TableName student
 */
@Data
public class Student implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer classno;

    /**
     * 
     */
    private Integer cid;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private Integer age;



    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", classno=").append(classno);
        sb.append(", cid=").append(cid);
        sb.append(", name=").append(name);
        sb.append(", age=").append(age);

        sb.append("]");
        return sb.toString();
    }

    public Student(Integer classno, Integer cid, String name, Integer age) {
        this.classno = classno;
        this.cid = cid;
        this.name = name;
        this.age = age;
    }
}